package com.xd.core.mission.controller;


import com.github.pagehelper.Page;
import com.xd.common.base.PageQuery;
import com.xd.core.mission.entity.MissionCenterInfo;
import com.xd.core.mission.service.IMissionCenterInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ZX555
 * @since 2025-03-09
 */
@RestController
@RequestMapping("/missionCenterInfo/mission-center-info")
public class MissionCenterInfoController {
    @Autowired
    private IMissionCenterInfoService missionCenterInfoService;
    @ApiOperation("导出任务列表")
    @PostMapping("/exportCenter")
    public Page<MissionCenterInfo> exportCenter(@RequestBody PageQuery pageQuery) {
        return missionCenterInfoService.exportCenter(pageQuery);
    }
    @ApiOperation("导入任务列表")
    @PostMapping("/importCenter")
    public Page<MissionCenterInfo> importCenter(@RequestBody PageQuery pageQuery) {
        return missionCenterInfoService.importCenter(pageQuery);
    }
}
